#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPropertyAnimation>

QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    int width_y;
    int height_y;
    int width_r;
    int height_r;

protected:
    void resizeEvent(QResizeEvent* event);
    bool eventFilter(QObject* obj, QEvent* event);

private:
    Ui::Widget *ui;
    QPropertyAnimation *propertyAnimation; // 声明 propertyAnimation
    QPropertyAnimation *propertyAnimation2;
};
#endif // WIDGET_H
